<tag <selection>attr="va<caret>lue"</selection> another="value">

  some Text

</tag>